# Contributor: omni <omni+alpine@hack.org>
# Maintainer: omni <omni+alpine@hack.org>
pkgname=verco
pkgver=6.12.0
pkgrel=0
pkgdesc="Simple Git/Mercurial/PlasticSCM tui client based on keyboard shortcuts"
arch="all !riscv64 !s390x" # libc crate
url="https://github.com/vamolessa/verco"
license="GPL-3.0-or-later"
makedepends="cargo cargo-auditable"
options="!check" # No tests
source="$pkgname-$pkgver.tar.gz::https://github.com/vamolessa/verco/archive/refs/tags/v$pkgver.tar.gz"


prepare() {
	default_prepare
	cargo fetch --target="$CTARGET" --locked
}

build() {
	cargo auditable build --release --frozen
}

package() {
	install -Dm0755 target/release/verco -t "$pkgdir"/usr/bin
}

sha512sums="
f2c4ddb975189253872b799e818bc1bb2c77bdc3e66e37ada2306d508fff1af22285b52fe793adb077487c8d8163e29b9c7fb684500dba24b218eb749ae75b6b  verco-6.12.0.tar.gz
"
